package Eclass;

import java.io.Serializable;
import java.util.*;

import validationInput.ValidateInput;

public class ExamPrepModel implements Serializable {
	private Integer examPrepId;
	private Integer batchId;
	private Integer classId;
	private String batchName;
	private String className;
	private Integer batchClassId;
	private Integer duration;
	private String startHour; // hrs '13/05/2013:12:00:00' krn 'dd/mm/yyyy:HH24:MI:SS'
	private String endHour; // hrs '13/05/2013:12:00:00' krn 'dd/mm/yyyy:HH24:MI:SS'
	private String status;
	private String examFor;
	private String isOpen;
	private Integer numOfQuestCandidate;
	
	//Rere 31 Des 2013
	private Integer totNumOfQuestCandidate;
	
	public Integer getTotNumOfQuestCandidate() {
		return totNumOfQuestCandidate;
	}
	public void setTotNumOfQuestCandidate(Integer totNumOfQuestCandidate) {
		this.totNumOfQuestCandidate = totNumOfQuestCandidate;
	}
	//================================
	
	public Integer getExamPrepId() {
		return examPrepId;
	}
	public void setExamPrepId(Integer examPrepId) {
		this.examPrepId = examPrepId;
	}
	public Integer getBatchClassId() {
		return batchClassId;
	}
	public void setBatchClassId(Integer batchClassId) {
		this.batchClassId = batchClassId;
	}
	public Integer getDuration() {
		return duration;
	}
	public void setDuration(Integer duration) {
		this.duration = duration;
	}
	
	public String getStartHour() {
		return startHour;
	}
	public void setStartHour(String startHour) {
		this.startHour = startHour;
	}
	public String getEndHour() {
		return endHour;
	}
	public void setEndHour(String endHour) {
		this.endHour = endHour;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Integer getBatchId() {
		return batchId;
	}
	public void setBatchId(Integer batchId) {
		this.batchId = batchId;
	}
	public Integer getClassId() {
		return classId;
	}
	public void setClassId(Integer classId) {
		this.classId = classId;
	}
	public String getExamFor() {
		return examFor;
	}
	public void setExamFor(String examFor) {
		this.examFor = examFor;
	}
	public String getBatchName() {
		return batchName;
	}
	public void setBatchName(String batchName) {
		this.batchName = batchName;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	
	@Override
	public String toString() {
		String s = "**********ExamPrepModel***********\n";
		s+= "examPrepId "+examPrepId+"\n";
		s+= "batchId "+batchId+"\n";
		s+= "classId "+classId+"\n";
		s+= "batchName "+batchName+"\n";
		s+= "className "+className+"\n";
		s+= "batchClassId "+batchClassId+"\n";
		s+= "duration "+duration+"\n";
		s+= "startHour "+startHour+"\n";
		s+= "endHour "+endHour+"\n";
		s+= "status "+status+"\n";
		s+= "examFor "+examFor+"\n";
		return s;
	}
	
	public void validateModel(){
		ValidateInput vi = new ValidateInput();
		batchName = vi.getFixInputStr(batchName);
		className = vi.getFixInputStr(className);
		startHour = vi.getFixInputStr(startHour);
		endHour = vi.getFixInputStr(endHour);
		status = vi.getFixInputStr(status);
		examFor = vi.getFixInputStr(examFor);
	}
	
	public String getIsOpen() {
		return isOpen;
	}
	public void setIsOpen(String isOpen) {
		this.isOpen = isOpen;
	}
	public Integer getNumOfQuestCandidate() {
		return numOfQuestCandidate;
	}
	public void setNumOfQuestCandidate(Integer numOfQuestCandidate) {
		this.numOfQuestCandidate = numOfQuestCandidate;
	}
	
}
